package com.edu.eduservice.client;

import com.edu.eduservice.client.OpenFeign.UcenterClientImpl;
import com.edu.eduservice.domain.UcenterMemberPay;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName UcenterClient
 * @date 2022/9/24 15:05
 * @Version 1.0
 */
@Component
@FeignClient(name="service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {

    //根据用户id获取用户信息
    @GetMapping("/ucenterservice/ucentermember//getInfoUc/{memberId}")
    public UcenterMemberPay getUcenterPay(@PathVariable("memberId") String memberId);
}
